package com.yc.txx.service;

import lombok.Data;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/5/10
 * Email haijunzhou@hnit.edu.cn
 */
@Data
public class BizException extends Exception{

    private Object data;

    public BizException(String message) {
        super(message);
    }

    public BizException(String message,Object data) {
        super(message);
        this.data = data;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    public BizException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
